package com.nervenets.web.controller.user;

import com.nervenets.Global;
import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserMarkStoreParams extends TokenParams {
    @ApiModelProperty(value = "用户的ID", required = true)
    @Positive(message = "请传入正确的用户ID")
    private long targetUserId;
    @ApiModelProperty(value = "质检员的真实姓名", required = true)
    @NotNull(message = "请输入质检员的真实姓名")
    private String name;
    @ApiModelProperty(value = "质检员的联系电话", required = true)
    @Pattern(regexp = Global.RegExp.MOBILE, message = "请输入质检员的联系电话")
    private String mobile;
    @ApiModelProperty(value = "门店的ID", required = true)
    @Positive(message = "请传入正确的门店ID")
    private long storeId;
    @ApiModelProperty(value = "是否设置为质检员")
    private boolean handlerEnable;
}
